<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TVBOX资源 - 指尖看世界</title>
	<link rel="shortcut icon" type="image/png" href="../assets/images/favicon.png">    
    <style>
        /* 基础样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', sans-serif;
        }

        body {
            line-height: 1.6;
            background-color: #f8f9fa;
        }

        /* 通用边框样式 */
        .section {
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            margin: 20px auto;
            padding: 20px;
            max-width: 800px;
            background: white;
        }

        /* 顶部图片区块 */
        .header-image {
            position: relative;
            height: 300px;
            background: url('https://picsum.photos/800/300') center/cover;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .image-title {
            color: white;
            font-size: 2.5em;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
            position: relative;
            z-index: 1;
        }

        /* 联系方式区块 */
        .container {
            max-width: 800px;
            margin: 0 auto;

            flex: 1;
        }

        header {
            text-align: center;
            padding: 0px 0;
        }

        h1 {
            color: #2c3e50;
            font-size: 2.5rem;
            margin-bottom: 30px;
        }

        /* 圆形联系方式样式 */
        .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 30px;
            max-width: 800px;
            margin: 0 auto;
        }

        .contact-card {
            width: 120px;
            height: 120px;

            border-radius: 50%;
            background: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 15px;
            margin: 0 auto;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .contact-card:hover {
            border-color: #3498db;
            transform: scale(1.05) translateY(-5px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
        }

        .contact-title {
            color: #2c3e50;
            font-size: 1rem;
            margin: 5px 0;
            text-align: center;
        }

        .contact-desc {
            color: #7f8c8d;
            font-size: 0.8rem;
            line-height: 1.2;
        }

        /* 弹窗样式 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 999;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background: white;
            padding: 30px;
            border-radius: 12px;
            text-align: center;
            position: relative;
            animation: zoomIn 0.3s;
        }

        @keyframes zoomIn {
            from { transform: scale(0.9); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }

        .modal img {
            width: 200px;
            height: 200px;
            margin: 15px 0;
        }

        .modal-close {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 1.5rem;
            color: #999;
            cursor: pointer;
        }
        /* 功能区 */
        .resource-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-bottom: 5px;
        }
        .resource-title {
            color: #2c3e50;
            font-size: 1.2rem;
            margin-bottom: 10px;
        }

        .resource-desc {
            color: #7f8c8d;
            font-size: 0.95rem;
            line-height: 1.5;
        }
        .resource-item {
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            padding: 20px;
            transition: all 0.3s ease;
            text-decoration: none;
            display: block;
        }

        .resource-item:hover {
            border-color: #3498db;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.1);
        }		
       .resource-texe{
	       text-decoration: none;
	   }		
        /* 底部版权 */
        footer {
            text-align: center;
            padding: 20px;
            color: #95a5a6;
            margin-top: 50px;
        }
        /* 链接文字样式 */
  .split-link {
    /* 基础样式 */

    font-weight: 700;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;

    /* 文字颜色处理 */
    background-image: linear-gradient(90deg, 
      #3498db 50%, 
      #e74c3c 50%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* 双色下划线 */
  .split-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-image: linear-gradient(90deg, 
      #3498db 50%, 
      #e74c3c 50%);
    transform-origin: center;
    transition: transform 0.3s;
  }

  /* 悬停动效 (可选) */
  .split-link:hover::after {
    transform: scaleY(2);
  }
 @supports (-webkit-background-clip: text) or (background-clip: text) {
  .split-link {
    color: transparent;
  } 
		
        /* 手机端适配 */
        @media (max-width: 768px) {
            .section {
                margin: 15px;
                padding: 15px;
            }

            .header-image {
                height: 200px;
            }

            .image-title {
                font-size: 1.5em;
            }

            .article-title {
                font-size: 1.3em;
            }

            .form-input, .submit-btn {
                font-size: 14px;
            }
            .resource-list {
                grid-template-columns: 1fr;
            }
            
            .resource-item {
                padding: 15px;
            }
        }	
            h1 {
                font-size: 2rem;
            }
            
            .contact-card {
                width: 100px;
                height: 100px;
            }
            
            .contact-title {
                font-size: 0.9rem;
            }
            
            .modal img {
                width: 180px;
                height: 180px;
            }		
        }
    </style>
    <!-- Font Awesome图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
</head>
<body>
    <!-- 顶部图片区块 -->
    <div class="section">
        <div class="header-image">
            <h1 class="image-title">— —  TVBOX资源  — —</h1>
        </div>
    </div>

    <!-- 联系方式 -->
    <div class="container">
        <header>

            <div class="contact-grid">
                <!-- GitHub 卡片 -->
                <a href="https://github.com/zhijiantv" class="contact-card" target="_blank" style="border: 2px solid #000000;">
                    <h3 class="contact-title">GitHub</h3>
                    <p class="contact-desc">开源项目</p>
                </a>

                <!-- QQ频道 卡片 -->
                <div class="contact-card" onclick="showModal('qqModal')" style="border: 2px solid #87CEFA;">
                    <h3 class="contact-title">QQ频道</h3>
                    <p class="contact-desc">扫码加入</p>
                </div>

                <!-- 微信公众号 卡片 -->
                <div class="contact-card" onclick="showModal('gzhModal')" style="border: 2px solid #07C160;">
                    <h3 class="contact-title">公众号</h3>
                    <p class="contact-desc">扫码加入</p>
                </div>

                <!-- 微信打赏 卡片 -->
                <div class="contact-card" onclick="showModal('wechatModal')" style="border: 2px solid #ffa500;">
				    <h3 class="contact-title">微信打赏</h3>
                    <p class="contact-desc">感谢支持</p>
                </div>
            </div>
        </header>
    </div>	

    <!-- QQ弹窗 -->
    <div id="qqModal" class="modal" onclick="closeModal(event)">
        <div class="modal-content">
            <span class="modal-close" onclick="closeModal(event)">&times;</span>
            <h3>QQ频道二维码</h3>
            <img src="../assets/images/logos/qqpd.jpg" alt="QQ频道二维码">
            <p>扫码加入我们的官方频道</p>
        </div>
    </div>

    <!-- 公众号弹窗 -->
    <div id="gzhModal" class="modal" onclick="closeModal(event)">
        <div class="modal-content">
            <span class="modal-close" onclick="closeModal(event)">&times;</span>
            <h3>公众号二维码</h3>
            <img src="../assets/images/logos/weixin.png" alt="公众号二维码">
            <p>扫码加入我们的微信公众号</p>
        </div>
    </div>

    <!-- 微信弹窗 -->
    <div id="wechatModal" class="modal" onclick="closeModal(event)">
        <div class="modal-content">
            <span class="modal-close" onclick="closeModal(event)">&times;</span>
            <h3>微信打赏支持</h3>
            <img src="../assets/images/logos/wxds.png" alt="微信收款码">
            <p>感谢您的支持与鼓励</p>
        </div>
    </div>

    <!-- 功能分布 -->
    <div class="section">	
        <div class="resource-list">
            <a href="tvbox.html" class="resource-item" target="_blank">
                <h3 class="resource-title">TVBOX接口</h3>
                <p class="resource-desc">免费接口合集，采集自互联网资源，请勿商用</p>
            </a>

            <a href="tvboxxz.html" class="resource-item" target="_blank">
                <h3 class="resource-title">TVBOX下载</h3>
                <p class="resource-desc">不同版本的下载合集</p>
            </a>

            <a href="tvboxjc.html" class="resource-item" target="_blank">
                <h3 class="resource-title">TVBOX使用教程</h3>
                <p class="resource-desc">适合不会配置TVBOX的人群</p>
            </a>

            <a href="ziyuan.html" class="resource-item" target="_blank">
                <h3 class="resource-title">FuLi资源采集站</h3>
                <p class="resource-desc">收集免费好用的资源采集网</p>
            </a>
        </div>
        </div>

    <!-- 底部版权 -->
    <footer>
        <p>© 2025 <a href="https://zhijiantv.netlify.app/" class="resource-texe">指尖看世界</a> 低调使用</p>
    </footer>

    <script>
        // 显示弹窗
        function showModal(modalId) {
            document.getElementById(modalId).style.display = 'flex';
        }

        // 关闭弹窗
        function closeModal(event) {
            event.stopPropagation();
            document.querySelectorAll('.modal').forEach(modal => {
                modal.style.display = 'none';
            });
        }

        // ESC键关闭
        document.addEventListener('keydown', (e) => {
            if (e.key === 'Escape') closeModal(e);
        });
    </script>

    <script>
        // 留言功能实现
        let comments = JSON.parse(localStorage.getItem('comments')) || [];

        document.getElementById('commentForm').addEventListener('submit', function(e) {
            e.preventDefault();
            
            const name = document.getElementById('userName').value.trim();
            const content = document.getElementById('userContent').value.trim();

            if (name && content) {
                const newComment = {
                    id: Date.now(),
                    name: name,
                    content: content,
                    time: new Date().toLocaleString()
                };

                comments.push(newComment);
                localStorage.setItem('comments', JSON.stringify(comments));
                renderComments();
                this.reset();
            }
        });

        function renderComments() {
            const list = document.getElementById('commentList');
            list.innerHTML = comments.map(comment => `
                <div class="comment-item">
                    <div>
                        <strong>${sanitize(comment.name)}</strong>
                        <span style="color: #95a5a6; font-size: 0.9em; margin-left: 10px;">
                            ${comment.time}
                        </span>
                        <p>${sanitize(comment.content)}</p>
                    </div>
                    <button class="delete-btn" onclick="deleteComment(${comment.id})">删除</button>
                </div>
            `).join('');
        }

        function deleteComment(id) {
            if (confirm('确定要删除这条留言吗？')) {
                comments = comments.filter(c => c.id !== id);
                localStorage.setItem('comments', JSON.stringify(comments));
                renderComments();
            }
        }

        function sanitize(text) {
            return text.toString()
                .replace(/&/g, "&amp;")
                .replace(/</g, "&lt;")
                .replace(/>/g, "&gt;");
        }

        // 初始化渲染
        renderComments();
    </script>
</body>
</html>
